/*
 * AddFeat.h
 *
 *  Created on: Jan 11, 2009
 *      Author: sez
 */

#ifndef ADDFEAT_H_
#define ADDFEAT_H_

#include <QDialog>

#include "AddUpdateDialog.h"

class Feat;
namespace Ui {
    class AddFeatDialog;
}

class AddFeat: public AddUpdateDialog
{
    Q_OBJECT
public:
    AddFeat(QWidget *parent = 0);
    virtual ~AddFeat();
    TitledData *data();
    static AddFeat *dialog(QWidget *parent = 0);
protected:
    void loadData();
    void saveData();
    void setupData();
    void clearData();
private Q_SLOTS:
    void on_typeComboBox_currentIndexChanged(int);
private:
    Ui::AddFeatDialog *mAddFeat;
    Feat *mData;
};

#endif /* ADDFEAT_H_ */
